package com.heima.admin.controller;

import com.heima.admin.service.AdLoginService;
import com.heima.model.admin.dtos.AdUserDTO;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
@Api(value = "运营平台登录api",tags = "运营平台登录")
public class AdLoginController {
    @Autowired
    private AdLoginService adLoginService;
    @ApiOperation("登录")
    @PostMapping("/login/in")
    public ResponseResult loginIN(@RequestBody AdUserDTO adUserDTO){
        return adLoginService.loginIN(adUserDTO);
    }
}
